<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('打回')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-migrate-update" enctype="multipart/form-data">
        <input name="id" th:value="${id}" type="hidden">
        <h4 class="form-header h4">打回</h4>
        <div class="row">
            <input type="hidden" id="type" name="type" th:value="${(type)}">
            <input type="hidden" id="status" name="status" value="2">
            <div class="form-group">
                <label class="col-sm-3 control-label  is-required">商户编号：</label>
                <div class="col-sm-8">
                    <input name="merno" id="merno" readonly  type="text" class="form-control" th:value="${merchant.get('MERNO')}" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label  is-required">商户名称：</label>
                <div class="col-sm-8">
                    <input readonly  type="text" class="form-control" th:value="${merchant.get('MER_NAME')}" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">姓名：</label>
                <div class="col-sm-8">
                    <input  readonly  type="text" class="form-control" th:value="${merchant.get('LINK_MAN')}" required>
                </div>
            </div>
             <div class="form-group">
                <label class="col-sm-3 control-label is-required">手机号：</label>
                <div class="col-sm-8">
                    <input  readonly  type="text" class="form-control" th:value="${merchant.get('LINK_PHONE')}" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">身份证号：</label>
                <div class="col-sm-8">
                    <input  readonly  type="text" class="form-control" th:value="${merchant.get('LEGAL_CERNO')}" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">结算卡号：</label>
                <div class="col-sm-8">
                    <input  readonly  type="text" class="form-control" th:value="${merchant.get('SCREEN_NUM')}" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">状态：</label>
                <div class="col-sm-8">
                    <input  readonly id="mer_status"  type="radio" name="mer_status" value="11" checked required> 打回身份证
                </div>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var merPrefix = ctx + "merchantInfo/merchantInfo"
    $("#form-record-add").validate({
        focusCleanup: true

    });
    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(merPrefix + "/updateProblemStatus/"+$("#merno").val()+"/"+$("#status").val()+"/"+$("#type").val()+"/"+$("#mer_status").val(), $('#form-migrate-update').serialize());
        }
    }

</script>
</body>
</html>